package com.app.config;

/**
 * Created by lijun on 2018/2/11.
 */
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class MvcConfig extends WebMvcConfigurerAdapter {

   @Override
   public void addViewControllers(ViewControllerRegistry registry) {
//        registry.addViewController("/#/dashboard").setViewName("home");
//        registry.addViewController("/").setViewName("home");
//        registry.addViewController("/hello").setViewName("hello");
       // registry.addViewController("/login").setViewName("/index.html");
       // registry.("/login.html","/index.html");
       super.addViewControllers(registry);
    }

}